package com.vercon.common.mode.weather;

import java.io.Serializable;
import java.util.List;

/**
 * Created by csh on 2020/7/31
 * 聚合天气质量数据
 */
public class Environment implements Serializable {
    /**
     * {
     * "resultcode":"200",
     * "reason":"SUCCESSED!",
     * "result":[
     * {
     * "city":"广州",
     * "PM2.5":"8",
     * "AQI":"21",
     * "quality":"优",
     * "PM10":"16",
     * "CO":"0.5",
     * "NO2":"13",
     * "O3":"68",
     * "SO2":"5",
     * "time":"2020-07-31 15:24:02"
     * }
     * ],
     * "error_code":0
     * }
     */
    private String resultcode;
    private String reason;
    private String error_code;
    private List<EnvironmentResult> result;


    public boolean isSuccessful() {
        return getResultcode().equals("200");
    }


    public String getResultcode() {
        return resultcode;
    }

    public void setResultcode(String resultcode) {
        this.resultcode = resultcode;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getError_code() {
        return error_code;
    }

    public void setError_code(String error_code) {
        this.error_code = error_code;
    }

    public List<EnvironmentResult> getResult() {
        return result;
    }

    public void setResult(List<EnvironmentResult> result) {
        this.result = result;
    }
}
